package com.fox.stock.mapper;

import com.fox.stock.pojo.entity.SysRolePermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 20555
* @description 针对表【sys_role_permission(角色权限表)】的数据库操作Mapper
* @createDate 2025-05-18 16:51:05
* @Entity com.fox.stock.pojo.entity.SysRolePermission
*/
public interface SysRolePermissionMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysRolePermission record);

    int insertSelective(SysRolePermission record);

    SysRolePermission selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysRolePermission record);

    int updateByPrimaryKey(SysRolePermission record);

    int insertBatch(@Param("list") List<SysRolePermission> list);

    List<String> getPermissionsByroleId(@Param("roleId") String roleId);

    int deleteByRoleId(Long id);
}
